<script>
export default {
    created() {
        const { params, query } = this.$route;
        // 路由跳转name的页面，刷新参数丢失
        // const { path } = params
        // this.$router.replace({ path: '/' + path, query })
        this.$router.replace({ name: params.name, params: params.params });
    },
    render: function(h) {
        return h(); // avoid warning message
    }
};
</script>
